import { initState } from './state'

export function initMinix (Vue) {
    Vue.prototype._init = function(options) {
        const vm = this;
        vm.$options = options;
        //初始化状态
        initState(vm);

        // 挂载
        if(options.el) {
            this.$mount(options.el)
        }
    }
    Vue.prototype.mount = function (el) {
        const vm = this;
        el = document.querySelector(el);
        const ops = vm.$options;
        if(!ops.render) {
            let template;
            if(!ops.template && el) {
                template = el.outerHTML;
            }
        }
    }
}

